Matthias Clasen [Sun, 19 Jun 2011 21:19:34 +0000 (17:19 -0400)]
Add a test involving a selection
Matthias Clasen [Sun, 19 Jun 2011 21:18:47 +0000 (17:18 -0400)]
Dump AtkSelection properties
Also make get_name() deal with object that are not GtkAccessible,
but implement AtkText. An example of this is GailNotebookPage.
Matthias Clasen [Sun, 19 Jun 2011 20:53:16 +0000 (16:53 -0400)]
Dump AtkAction properties
Adjust expected output to match.
Matthias Clasen [Sun, 19 Jun 2011 19:30:01 +0000 (15:30 -0400)]
Dump AtkImage properties too
Update expected output to match.
Matthias Clasen [Sun, 19 Jun 2011 19:22:08 +0000 (15:22 -0400)]
More text properties
Matthias Clasen [Sun, 19 Jun 2011 18:56:05 +0000 (14:56 -0400)]
Dump AtkText properties too
...would be nice if these actually _were_ properties.
Update the expected output to match.
Matthias Clasen [Sun, 19 Jun 2011 18:11:46 +0000 (14:11 -0400)]
Remove remnants of GnomeCanvas
There were some random places where gail was poking at types
to see if they were a GnomeCanvas. Just remove this.
Matthias Clasen [Sun, 19 Jun 2011 18:05:06 +0000 (14:05 -0400)]
Fix make check
Not really the best fix; for now just ignore accessible parents
that are not GtkAccessibles - it seems that something causes
GailToplevels to show up as parents of GailWindows, randomly.
Matthias Clasen [Sun, 19 Jun 2011 18:04:29 +0000 (14:04 -0400)]
Remove an extra line from expected output
Matthias Clasen [Sun, 19 Jun 2011 17:36:20 +0000 (13:36 -0400)]
Don't forget to free an empty attribute set
Matthias Clasen [Sun, 19 Jun 2011 17:20:32 +0000 (13:20 -0400)]
Add a more convenient way to dump
For initial creation of the results, allow to run
accessibility-dump --generate file.ui,
which will dump just the expected output to stdout,
without any extra decorations.
Matthias Clasen [Sun, 19 Jun 2011 15:32:43 +0000 (11:32 -0400)]
Dump more accessibility data
This commit adds dumping of parents, attributes and states.
The expected dump output has been adjusted to match.
Matthias Clasen [Sun, 19 Jun 2011 06:11:11 +0000 (02:11 -0400)]
Add new tests to EXTRA_DIST
Matthias Clasen [Sun, 19 Jun 2011 06:10:27 +0000 (02:10 -0400)]
Add a test that sets ::accessible-name
Matthias Clasen [Sun, 19 Jun 2011 06:03:24 +0000 (02:03 -0400)]
Add a test that has a labeled-by relation in it
Benjamin Otte [Sun, 19 Jun 2011 04:11:38 +0000 (06:11 +0200)]
tests: Add first shot at an accessibility dump tool
The tool works like this:
./accessibility-dump [FILE ...]
If no files are given, all files with the extension ".ui" in the current
directory are taken. For every file "test.ui", the following steps are
performed:
1) test.ui is loaded using GtkBuilder
2) The accessible for the window is loaded
3) The information of accessible is converted into a string using a
syntax defined in this test file
4) The generated string is diffed with the file "test.txt"
5) If the diff is empty, the test is a success, if not, the test fails.
6) The diff is output when the test runner is run with --verbose
So to add a test named "test", create a file called "test.ui", put it
into this directory. Then create the expected output file "test.txt",
put it into this directory too. You can create the initial version of
this file by invoking "./accessibility-dump --verbose test.ui". The
output will contain the expected text and can be copy/pasted into the
text file.
Benjamin Otte [Sat, 18 Jun 2011 07:51:18 +0000 (09:51 +0200)]
API: Add gtk_widget_class_set_accessible_type()
The function is supposed to bypass the ATK registry. For 2 reasons:
1) We get rid of a lot of boilerplate madness.
2) The registry allows creating multiple accessibles per widget and we
don't.
The old code for registries is still there.
Benjamin Otte [Sat, 18 Jun 2011 07:11:11 +0000 (09:11 +0200)]
widget: Add a GtkWidgetClassPrivate
As long as glib doesn't provide class privates, we'll have to ship our
own...
Benjamin Otte [Wed, 15 Jun 2011 12:57:20 +0000 (14:57 +0200)]
a11y: Remove unused HTML objects
Seems they were for GtkHTML and never used since GAIL got imported into
GTK.
Matthias Clasen [Fri, 17 Jun 2011 04:15:27 +0000 (00:15 -0400)]
No need for gail.h
Matthias Clasen [Fri, 17 Jun 2011 04:14:11 +0000 (00:14 -0400)]
NO_GAIL not used anymore
Matthias Clasen [Fri, 17 Jun 2011 04:11:00 +0000 (00:11 -0400)]
We're not a module anymore
So no need to implement module entry points; and libgnome is
dead too, so no need to export functions for it either.
Matthias Clasen [Fri, 17 Jun 2011 03:13:38 +0000 (23:13 -0400)]
Add a first, trivial test for accessibles
Matthias Clasen [Fri, 17 Jun 2011 02:40:21 +0000 (22:40 -0400)]
And remove it from the build too
Matthias Clasen [Fri, 17 Jun 2011 02:38:48 +0000 (22:38 -0400)]
Remove the old gail tests
This is not what we are looking for in tests, and it hasn't been
touched in ages.
Benjamin Otte [Wed, 15 Jun 2011 10:46:50 +0000 (12:46 +0200)]
gtk: Include gail by default, don't build it as a module
It is now no longer possible to disable it.
This doesn't matter though because GTK will not instantiate a11y
objects until you actually use it. So nothing changes in practice.
Benjamin Otte [Tue, 14 Jun 2011 20:27:11 +0000 (22:27 +0200)]
gtk: Move a11y tests fro a11y/tests to tests/a11y
Benjamin Otte [Tue, 14 Jun 2011 20:08:55 +0000 (22:08 +0200)]
gail-util: Move into toplevel directory
Benjamin Otte [Tue, 14 Jun 2011 18:29:15 +0000 (20:29 +0200)]
gail: Copy gail-util functions into gail
Otherwise we get a circular dependency if we move libgail into GTK:
GTK depends on gail-util depends on gail (is part of GTK)
Benjamin Otte [Tue, 14 Jun 2011 15:54:27 +0000 (17:54 +0200)]
gail: Move from modules/other/gail to gtk/a11y
Benjamin Otte [Tue, 14 Jun 2011 14:09:35 +0000 (16:09 +0200)]
gail: No need to include modules/other in CFLAGS anymore
Now that we include headers directly, ew don't need it anymore. And the
current directory is included automatically.
Benjamin Otte [Tue, 14 Jun 2011 13:35:34 +0000 (15:35 +0200)]
gail: Include files directly
Instead of including <gail/gailfoo.h>, include "gailfoo.h"
Private headers should be included like this (to make it esily visible
that the headers are private) and we want to move this directory to a
different name, so hardcoding the directory name is counterproductive to
that.
Arash Mousavi [Tue, 5 Jul 2011 17:48:59 +0000 (22:18 +0430)]
Updated Persian translations
Matthias Clasen [Tue, 5 Jul 2011 15:04:06 +0000 (11:04 -0400)]
Post-release version bump
Up to 3.1.9
Matthias Clasen [Tue, 5 Jul 2011 15:03:23 +0000 (11:03 -0400)]
3.1.8
Matthias Clasen [Tue, 5 Jul 2011 13:33:51 +0000 (09:33 -0400)]
Update NEWS
Benjamin Otte [Tue, 5 Jul 2011 13:28:18 +0000 (15:28 +0200)]
reftests: Use an offscreen window to avoid artifacts
When tests are larger than the screen size and no compositing is
enabled, the window will be clipped to the screen size and all areas
outside of the screen have undefined contents.
To avoid this, we can use an offscreen window.
Benjamin Otte [Tue, 5 Jul 2011 13:18:14 +0000 (15:18 +0200)]
reftests: Fix label-sizing reference for Pango
See https://bugzilla.gnome.org/show_bug.cgi?id=649783 for a discussion
of the problem. Should this bug be fixed, this patch can just be
reverted.
Benjamin Otte [Tue, 5 Jul 2011 13:17:23 +0000 (15:17 +0200)]
reftests: load/save file once in Glade
This way the output is canonicalized for further editing. No changes
have been done.
Yaron Shahrabani [Sat, 2 Jul 2011 07:26:09 +0000 (10:26 +0300)]
Updated Hebrew translation.
Cosimo Cecchi [Fri, 1 Jul 2011 23:57:27 +0000 (01:57 +0200)]
reftests: Add test for box brokenness
This is a tests for the last commit.
Benjamin Otte [Fri, 1 Jul 2011 23:25:45 +0000 (01:25 +0200)]
box: Remove cache for sibling paths
We can't cache this path as widgets might dynamically add or remove
style classes without telling us. At which point the stored path does
not work.
Cosimo Cecchi [Fri, 1 Jul 2011 16:33:26 +0000 (12:33 -0400)]
toolbar: don't leak the sibling path
Cosimo Cecchi [Thu, 30 Jun 2011 21:00:32 +0000 (17:00 -0400)]
toolbar: don't count invisible widgets when building the sibling path
Also, fix RTL nth-child handling for toolbars.
Cosimo Cecchi [Thu, 30 Jun 2011 19:51:10 +0000 (15:51 -0400)]
toolbar: invalidate order when an item visibility changes
Matthias Clasen [Sat, 18 Jun 2011 17:14:18 +0000 (13:14 -0400)]
Test box and toolbar regions in parallel
This makes it easy to see discrepancies.
Plus, it is fun
Matthias Clasen [Sat, 18 Jun 2011 16:45:56 +0000 (12:45 -0400)]
toolbar: nth-child support for GtkToolbar
This doesn't quite work right yet.
Cosimo Cecchi [Thu, 30 Jun 2011 20:19:57 +0000 (16:19 -0400)]
box: follow children visibility when building the sibling path
This fixes nth-child not working for widgets which were not
visible before being added to the box, but it's also a better fix
for https://bugzilla.gnome.org/show_bug.cgi?id=652769
Cosimo Cecchi [Fri, 1 Jul 2011 15:47:41 +0000 (11:47 -0400)]
Revert "gtkbox: Invalidate order on changes, even if the child is not visible"
This reverts commit
8cb0cc58e321641ebda699b9cbdc0067aeb56d3f.
Matthias Clasen [Thu, 30 Jun 2011 23:18:26 +0000 (19:18 -0400)]
Fix up docs for predefined style classes.
The table was incomplete and out of date. Instead, just
put a list of links in that place, and move all the extra
documentation to the macros. Bug 653785
Matthias Clasen [Thu, 30 Jun 2011 18:45:16 +0000 (14:45 -0400)]
GdkKeymap: Prevent an infinite loop in the non-XKB case
Somehow the increment got lost, as comparison with the 2.x code
shows.
Vincent Untz [Tue, 28 Jun 2011 09:47:37 +0000 (11:47 +0200)]
gtkbox: Invalidate order on changes, even if the child is not visible
When we build the sibling path for the order, we do not skip hidden
children (since, quoting the comment, "we cannot reliably detect changes
in widget visibility"). So we need to invalidate the order when hidden
children are reordered and removed.
https://bugzilla.gnome.org/show_bug.cgi?id=652769
John (J5) Palmieri [Wed, 29 Jun 2011 18:53:33 +0000 (14:53 -0400)]
[gi] add more annotations to force drag and drop api to be methods
Wouter Bolsterlee [Wed, 29 Jun 2011 17:31:53 +0000 (19:31 +0200)]
Updated Dutch translation by Wouter Bolsterlee
John (J5) Palmieri [Wed, 29 Jun 2011 16:11:36 +0000 (12:11 -0400)]
[gi] make sure gtk_drag_dest_unset is annotated as a method
Juan Pablo Ugarte [Wed, 29 Jun 2011 14:45:33 +0000 (11:45 -0300)]
Make GtkBuilder do not delay construct properties that can be resolved
(so construct is respected when possible) and skip construct only props that
can not.
Javier Jardon [Wed, 29 Jun 2011 14:00:06 +0000 (15:00 +0100)]
gtk/gtkmenuitem: Remove reference to deprecated and removed GtkItem
Chun-wei Fan [Wed, 29 Jun 2011 05:55:46 +0000 (13:55 +0800)]
Update VS2010 READNE.txt
This file should have Windows CRLF EOL as well
Chun-wei Fan [Wed, 29 Jun 2011 04:49:14 +0000 (12:49 +0800)]
Re-attempt to correct EOL on VS2010 solution
This time I realized that I needed to set autocrlf=false on my Windows side
... ugh...
This is one of those files that must have CRLF line endings to work
correctly :|
Claudio Saavedra [Mon, 27 Jun 2011 16:58:21 +0000 (19:58 +0300)]
Use a PAGE_STEP macro instead of a magic number
Helps to understand the code.
https://bugzilla.gnome.org/show_bug.cgi?id=653512
Ihar Hrachyshka [Mon, 27 Jun 2011 22:32:26 +0000 (01:32 +0300)]
Updated Belarusian translation.
Matthias Clasen [Mon, 27 Jun 2011 20:46:33 +0000 (16:46 -0400)]
Don't forget to initialize a variable
Pointed out by clang in bug 653333.
John (J5) Palmieri [Mon, 27 Jun 2011 17:43:46 +0000 (13:43 -0400)]
[gi] correct annotation for GtkMenuPositionFunc callbacks
Mike Gorse [Wed, 22 Jun 2011 20:23:15 +0000 (15:23 -0500)]
bgo#653191 - fix uninitialized variable in gtk_file_chooser_entry.c
Paolo Borelli [Sun, 26 Jun 2011 18:41:21 +0000 (20:41 +0200)]
Speed up page insertion
Make sure to call widget_set_child_visible(false) on all tabs except the
current before calling widget_set_parent.
Ihar Hrachyshka [Sat, 25 Jun 2011 18:32:27 +0000 (21:32 +0300)]
Updated Belarusian translation.
Ihar Hrachyshka [Sat, 25 Jun 2011 18:25:44 +0000 (21:25 +0300)]
Updated Belarusian translation.
Chun-wei Fan [Fri, 24 Jun 2011 18:06:53 +0000 (02:06 +0800)]
Update VS projects distribution
Change the EXTRA_DIST to distribute the gtk3-demo projects (instead of
gtk-demo)
Chun-wei Fan [Fri, 24 Jun 2011 05:19:58 +0000 (13:19 +0800)]
Add headers required by gtk/gtkwin32embedwidget.c
Some functions from the added headers are needed by this file to compile
without C4013 (a.k.a implicit declaration of ...) warnings/errors
Chun-wei Fan [Fri, 24 Jun 2011 04:48:22 +0000 (12:48 +0800)]
Update VS project files
-Reinstate build/win32/vs10/gtk+.sln with the correct EOL (DOS/Windows), so
that it will be correctly recognized by Windows instead of having the
annoying "Unrecognized Visual Studio Version".
-Update property sheets to reflect on new headers added
-Change the demo program to be gtk3-demo.exe, to be consistent with the
names on other platforms, and updated/renamed related project/solution
files, and added overlay.c to the list of demo sources.
Chun-wei Fan [Fri, 24 Jun 2011 04:42:47 +0000 (12:42 +0800)]
Temporarily remove build/win32/vs10/gtk+.sln
The line endings need to be DOS/Windows...
Murray Cumming [Thu, 23 Jun 2011 22:20:57 +0000 (00:20 +0200)]
GtkPaned docs: Remove sentence saying see GtkPaned.
Arash Mousavi [Thu, 23 Jun 2011 19:02:24 +0000 (23:32 +0430)]
Updated Persian Translation
Scott Moreau [Thu, 23 Jun 2011 05:10:24 +0000 (23:10 -0600)]
Track wayland protocol changes.
Colin Walters [Wed, 22 Jun 2011 15:07:37 +0000 (11:07 -0400)]
introspection.m4: Update from g-i
This fixes substitution with dash.
Fran Diéguez [Tue, 21 Jun 2011 11:58:45 +0000 (13:58 +0200)]
Updated Galician translations
Claudio Saavedra [Mon, 20 Jun 2011 21:29:45 +0000 (00:29 +0300)]
Avoid GApplication being released twice on gtk_application_remove_window() calls
Removing the window from the window list before setting the
application to %NULL avoids gtk_application_remove_window() triggering
another call to gtk_application_window_removed(), which would release
the application a second time.
https://bugzilla.gnome.org/show_bug.cgi?id=653053
Javier Jardón [Mon, 20 Jun 2011 13:24:57 +0000 (14:24 +0100)]
docs: remove tmpl directories
We do not use template files anymore
Javier Jardón [Mon, 20 Jun 2011 10:38:03 +0000 (11:38 +0100)]
configure.ac: Generate xz tarballs with ustar format by default
Chun-wei Fan [Mon, 20 Jun 2011 09:05:00 +0000 (17:05 +0800)]
Update VS property sheets
As Cairo and Cairo-GObject are often built as two seperate DLLs/modules,
set the property sheets to link to both libraries, instead of using the
previous approach where a monolithic Cairo DLL which contains GObject
support is used.
Chun-wei Fan [Mon, 20 Jun 2011 04:19:54 +0000 (12:19 +0800)]
Refine Visual C++ 2010 projects
-Remove unneeded tags from projects
-Seperate intermediate directories for projects to avoid rebuilding/
linking on every rebuild and MSBuild errors (et al.) for not being
able to write into build log files as they are in use.
Kjartan Maraas [Sun, 19 Jun 2011 15:32:13 +0000 (17:32 +0200)]
Updated Norwegian bokmål translation.
Jorge González [Sun, 19 Jun 2011 15:18:01 +0000 (17:18 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 18 Jun 2011 16:36:38 +0000 (12:36 -0400)]
Add sibling information to widget path string representations
Matthias Clasen [Sat, 18 Jun 2011 15:11:47 +0000 (11:11 -0400)]
Fix css syntax in example
Matthias Clasen [Sat, 18 Jun 2011 02:57:35 +0000 (22:57 -0400)]
Remove an unused variable
Matthias Clasen [Sat, 18 Jun 2011 00:35:41 +0000 (20:35 -0400)]
Remove nonexisting properties
glade insists on adding GtkGrid:n-rows and :n-columns, for
no good reason...
Cosimo Cecchi [Fri, 17 Jun 2011 15:33:18 +0000 (11:33 -0400)]
tests: import the widget-factory test for theming
Courtesy of Andrea Cimitan <andrea.cimitan@canonical.com>.
Matthias Clasen [Fri, 17 Jun 2011 03:51:06 +0000 (23:51 -0400)]
Update keybinding docs
These were still explaining gtkrc syntax.
Matthias Clasen [Fri, 17 Jun 2011 03:35:24 +0000 (23:35 -0400)]
Remove unnecessary includes
gtkstyle.h is similarly unused.
Matthias Clasen [Fri, 17 Jun 2011 03:33:43 +0000 (23:33 -0400)]
Remove unused includes
Nothing is using gtkrc.h functionality any more.
Matthias Clasen [Fri, 17 Jun 2011 03:18:03 +0000 (23:18 -0400)]
Silence a warning
Matthias Clasen [Fri, 17 Jun 2011 02:15:50 +0000 (22:15 -0400)]
GtkBox: don't reset styles too often
José Aliste [Thu, 16 Jun 2011 18:32:13 +0000 (14:32 -0400)]
info_bar: call style_updated at the end of info_bar_init
This fix a render bug where the infobar would not add borders
arount its content. Fix proposed by Benjamin Otte.
Chun-wei Fan [Thu, 16 Jun 2011 07:34:43 +0000 (15:34 +0800)]
Update Visual C++ projects
Use G_ENABLE_DEBUG for all debug builds
Benjamin Otte [Wed, 15 Jun 2011 20:50:59 +0000 (22:50 +0200)]
toolbar: Better fix for animations
It turns out there's more places where the toolbar item size is used as
the margin box instead of the content box. Because of that, store the
margin box when allocating and use it whenever calls
toolbar_content_get_allocation() instead of calling
gtk_widget_get_allocation().
Benjamin Otte [Wed, 15 Jun 2011 17:59:45 +0000 (19:59 +0200)]
toolbar: Handle the fact that size_allocate() != get_allocation()
size_allocate() allocates the available space for the margin box,
get_allocation() returns the actual space of the content box and those
can be different. And then animations never stop.
If that makes you go "huh?", you might want to read
http://www.w3.org/TR/CSS21/box.html
and the docs for gtk_widget_compute_align().
Benjamin Otte [Wed, 15 Jun 2011 15:24:36 +0000 (11:24 -0400)]
reftests: fix background-area reftest after the last commit
Cosimo Cecchi [Wed, 15 Jun 2011 05:07:11 +0000 (01:07 -0400)]
themingengine: shrink the background size to the padding-box
This fixes a regression introduced by this commit [1] that causes
background to draw beyond the padding-box, which breaks rounded corners,
(in addition to not being compliant with what CSS does by default).
[1] http://git.gnome.org/browse/gtk+/commit/?id=
c56700ca3029a9ab1362009bff35f2a70e432c02
https://bugzilla.gnome.org/show_bug.cgi?id=652618
Xan Lopez [Wed, 15 Jun 2011 12:13:20 +0000 (14:13 +0200)]
themingengine: plug a couple of leaks